package com.thp.strategy.examplePro;
/**
 * 策略工厂
 * @author Tommy
 *
 */
public class CalPriceFactory {

	private CalPriceFactory() {}
	
	// 根据客户的总金额产生相应的金额
	public static CalPrice createPrice(Player customer) {
		if(customer.getTotalMount() > 30000) {
			return new GoldVip();
		} else if(customer.getTotalMount() > 20000) {
			return new SuperVip();
		} else if(customer.getTotalMount() > 1000) {
			return new Vip();
		} else {
			return new Originc();
		}
	}
}
